package cn.yuhao.party.file.service;

import java.sql.SQLException;

import cn.yuhao.party.file.dao.FileDao;
import cn.yuhao.party.file.domain.FileDomain;
import cn.yuhao.party.pager.PageBean;

public class FileService {
	private FileDao fd=new FileDao();

	public void addFile(FileDomain file) {
		fd.addFile(file);
		
	}

	public PageBean<FileDomain> findAll(int pc) {
		
		return fd.findAll(pc);
	}

	public void delete(String filename) throws SQLException {
		fd.delete(filename);
		
	}
}
